package mobi.bantu.service;

import java.util.List;
import java.util.Map;

import mobi.bantu.bean.UserView;
import mobi.bantu.bean.User;

public interface UserService {
    User getByOpenId(String openid);

    User createNewUser(String openId);

    UserView view(User user);

    int update(User user);

    List<User> listWorks();

    List<User> list(Map<String, Object> sp);

    int count(Map<String, Object> sp);

    User get(Long id);
}
